home *** CD-ROM | disk | FTP | other *** search
/ Gold Medal Software 3 / Gold Medal Software - Volume 3 (Gold Medal) (1994).iso / bbsutils / q_zz115.arj / PCBTEST.BAT < prev    next >
DOS Batch File  |  1994-03-06  |  1KB  |  64 lines

  1. @echo off
  2. if exist pcbpass.txt del pcbpass.txt
  3. if exist pcbfail.txt del pcbfail.txt
  4. cls
  5. echo ┌───────────────────┐
  6. echo │ Processing Upload │
  7. echo └───────────────────┘
  8.  
  9. rem This are 4Dos commands - Command.com users should use GETEXT.EXE
  10. rem                          Included in the ZZ Package
  11. if %@ext[%1]==gif goto diz
  12. if %@ext[%1]==zip goto zip
  13. if %@ext[%1]==arj goto arj
  14. if %@ext[%1]==lzh goto diz
  15. if %@ext[%1]==txt goto diz
  16. rem End of 4Dos commands
  17. goto plus
  18.  
  19. :zip
  20. echo ■ Testing ZIP file integrity
  21. pkunzip -t %1 > pcbfail.txt
  22. if errorlevel == 1 goto failed
  23. goto diz
  24.  
  25. :arj
  26. echo ■ Testing ARJ file integrity
  27. arj t %1 > pcbfail.txt
  28. if errorlevel == 1 goto failed
  29. goto diz
  30.  
  31.  
  32.  
  33. :diz
  34. echo ■ Executing ZipZap!
  35. lh d:\zipzap\zipzap.exe d:\zipzap\zipzap.cnf %1 %3
  36. del d:\comment.### > nul
  37. if errorlevel==200 goto agefail
  38.  
  39. del pcbfail.txt > nul
  40. goto end
  41.  
  42. :failed
  43. echo ■ CRC ERROR
  44. echo ■ Moving File offline !
  45. move %1 d:\confs\ > nul
  46. goto end
  47.  
  48.  
  49. :agefail
  50. echo ■ FILE FAILED AGE TEST!
  51. echo ■ Moving File offline !
  52. move %1 d:\confs\ > nul
  53. goto end
  54.  
  55. :plus
  56.  
  57. echo ■ Executing UBPLUS!
  58. d:\pcb\ubplus d:\pcb\ubplus.cnf %3
  59.  
  60.  
  61. :end
  62. @d:\pcb\doors\faker\fakerlog d:\pcb\doors\faker\faker.log %1
  63. echo ■ Done!
  64.